package com.lwd.mapper;

import com.lwd.entity.Admin;
import com.lwd.entity.Goods;
import com.lwd.entity.GoodsExample;
import com.lwd.entity.Type;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface GoodsMapper {
    int countByExample(GoodsExample example);

    int deleteByExample(GoodsExample example);

    int deleteByPrimaryKey(Integer gid);

    int insert(Goods record);

    int insertSelective(Goods record);

    List<Goods> selectByExample(GoodsExample example);

    Goods selectByPrimaryKey(Integer gid);

    int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

	List<Type> queryTypeAll();

	List<Goods> getAllGoods();

    List<Goods> selectByTIdAndGname(@Param("tid") Integer tid, @Param("gname") String gname);

    Goods queryGoodsDetailById(Integer id);

    //List<Goods> selectGoodsWithConditions(@Param("tname") String tname, @Param("gname") String gname);
}